package com.yunlongcoding.cahuomarketing.pojo;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 购物车详情表（购物车商品条目表，记录用户购物车里的具体商品）
 */
public class ChmShoppingCartItem implements Serializable {

    private static final long serialVersionUID = -3304270507701541412L;

    // 主键id
    private Long id;

    // 会员id
    private Long memberId;

    // 商品id
    private Long goodsId;

    // 商品购买数量
    private Integer buyNumber;

    // 商品名称
    private String goodsName;

    // 商品价格
    private BigDecimal goodsPrice;

    // 商品积分
    private BigDecimal goodsIntegral;

    // 商品消费金
    private BigDecimal goodsConsumerMoney;

    // 商品所属商城，标识属于商城还是积分商城，0商城，1积分商城
    private Short belongTo;

    // 商品购物车状态 0：添加未购买（添加购物车未提交订单购买） 1：已购买，购物车清空 2：已删除
    private Short status;

    // 创建时间
    private Date createTime;

    // 更新时间
    private Date updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public Integer getBuyNumber() {
        return buyNumber;
    }

    public void setBuyNumber(Integer buyNumber) {
        this.buyNumber = buyNumber;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName == null ? null : goodsName.trim();
    }

    public BigDecimal getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(BigDecimal goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public BigDecimal getGoodsIntegral() {
        return goodsIntegral;
    }

    public void setGoodsIntegral(BigDecimal goodsIntegral) {
        this.goodsIntegral = goodsIntegral;
    }

    public BigDecimal getGoodsConsumerMoney() {
        return goodsConsumerMoney;
    }

    public void setGoodsConsumerMoney(BigDecimal goodsConsumerMoney) {
        this.goodsConsumerMoney = goodsConsumerMoney;
    }

    public Short getBelongTo() {
        return belongTo;
    }

    public void setBelongTo(Short belongTo) {
        this.belongTo = belongTo;
    }

    public Short getStatus() {
        return status;
    }

    public void setStatus(Short status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}